package com.gitee.ixtf.rsocket.service

import java.io.Serializable

data class GetBrokerServiceRequest(val service: String) : Serializable {
  companion object {
    const val CLOUD_EVENT_TYPE = "ce:rsocket:GetBrokerServiceRequest"
  }
}

data class GetBrokerServiceResponse(
    val service: String,
    val instances: Collection<BrokerServiceInstance>,
) : Serializable

data class BrokerServiceInstance(
    val id: String,
    val tags: Collection<String>? = null,
) : Serializable

object ListBrokerServiceRequest {
  const val CLOUD_EVENT_TYPE = "ce:rsocket:ListBrokerServiceRequest"
}
